package com.goldman.aplt.service.rule;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.goldman.aplt.entity.rule.AppRuleInterface;
import com.goldman.aplt.repo.rule.AppRuleInterfaceMapper;
import org.springframework.cache.annotation.CacheConfig;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;

/**
* @author lenovo
* @description 针对表【app_rule_interface】的数据库操作Service实现
* @createDate 2024-07-16 17:43:21
*/
@Service
@CacheConfig(cacheNames = "${systemId}:AppRuleInterfaceService")
public class AppRuleInterfaceService extends ServiceImpl<AppRuleInterfaceMapper, AppRuleInterface> {
    @Cacheable
    public AppRuleInterface getOne(String ruleScene, String columnName) {
        return this.lambdaQuery()
                .eq(AppRuleInterface::getRuleSceneCode, ruleScene)
                .eq(AppRuleInterface::getColumnName, columnName).one();
    }


}




